package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.BlessingMapper;
import com.shunbo.convenient.service.BlessingService;
import com.shunbo.convenient.vo.Blessing;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class BlessingServiceImpl implements BlessingService {

    @Resource
    private BlessingMapper blessingMapper;

    @Override
    public Integer save(Blessing obj) {
        return blessingMapper.save(obj);
    }

    @Override
    public Integer update(Blessing obj) {
        return blessingMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return blessingMapper.delete(obj);
    }

    @Override
    public Blessing findById(String obj) {
        return blessingMapper.findById(obj);
    }

    @Override
    public List<Blessing> findAll(Blessing obj) {
        return blessingMapper.findAll(obj);
    }
}
